@import '@/styles/variables.scss';

.address-edit-page {
  min-height: 100vh;
  background-color: $bg-color;
  padding-bottom: 40rpx;
  
  .form-section {
    background-color: #fff;
    margin-bottom: 20rpx;
    
    .form-item {
      display: flex;
      align-items: center;
      padding: 30rpx;
      border-bottom: 1rpx solid $border-color-light;
      
      &:last-child {
        border-bottom: none;
      }
      
      .label {
        width: 160rpx;
        font-size: 28rpx;
        color: $text-color-primary;
      }
      
      .input, .region-picker {
        flex: 1;
        height: 60rpx;
        font-size: 28rpx;
      }
      
      .textarea {
        flex: 1;
        height: 160rpx;
        font-size: 28rpx;
        line-height: 1.5;
      }
      
      .region-picker {
        display: flex;
        justify-content: space-between;
        align-items: center;
        
        .region-text, .placeholder {
          flex: 1;
        }
        
        .placeholder {
          color: $text-color-placeholder;
        }
        
        .arrow {
          color: $text-color-secondary;
        }
      }
      
      &.switch-item {
        justify-content: space-between;
      }
    }
  }
  
  .save-btn-wrapper {
    padding: 40rpx 30rpx;
    
    .save-btn {
      height: 80rpx;
      line-height: 80rpx;
      background-color: $primary-color;
      color: #fff;
      border-radius: 40rpx;
      font-size: 30rpx;
    }
  }
  
  .region-picker-view {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    z-index: 999;
    
    .mask {
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      background-color: rgba(0, 0, 0, 0.5);
    }
    
    .picker-content {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 600rpx;
      background-color: #fff;
      
      .picker-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100rpx;
        padding: 0 30rpx;
        border-bottom: 1rpx solid $border-color-light;
        
        .title {
          font-size: 30rpx;
          color: $text-color-primary;
          font-weight: bold;
        }
        
        .cancel-btn, .confirm-btn {
          font-size: 28rpx;
          padding: 10rpx;
        }
        
        .cancel-btn {
          color: $text-color-secondary;
        }
        
        .confirm-btn {
          color: $primary-color;
        }
      }
      
      .picker-item {
        line-height: 100rpx;
        text-align: center;
        font-size: 28rpx;
      }
    }
  }
} 